package com.itheima.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.entity.Result;
import com.itheima.service.PermissionService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/permission")
public class NewPermissionController {
    @Reference
    private PermissionService permissionService;
    @RequestMapping("/findKeywordsByUsername")
    public Result findKeywordsByUsername(String username){
        List<String> list= permissionService.findKeywordByUsername(username);
        return new Result(true,null,list);

    }
}
